package com.maiji.cloud.entities.login;

import java.util.Date;

import com.baomidou.mybatisplus.annotations.TableId;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 食材收藏表
 * @author zhanglr  
 * @date 2019年7月1日
 */
@Data
@Accessors(chain=true)
@Table(name = "food_material_collection")
public class FoodMaterialCollection {
	
	@TableId
	@Column(name = "uu_id", type = MySqlTypeConstant.VARCHAR, length = 50, isKey = true)
    private String uuId; //主键
	
	@Column(name = "food_material_id", type = MySqlTypeConstant.VARCHAR, length = 50)
	private String foodMaterialId; //食材id
		
	@Column(name = "user_id", type = MySqlTypeConstant.VARCHAR, length = 50)
	private String userId; //食材id
	
	@Column(name = "name", type = MySqlTypeConstant.VARCHAR, length = 50)
    private String name; //名称
	
	@Column(name = "hot", type = MySqlTypeConstant.VARCHAR, length = 50)
	private String hot; //热量
	
	@Column(name = "img_url", type = MySqlTypeConstant.VARCHAR, length = 255)
	private String imgUrl; //图片
	
	@Column(name = "is_del", type = MySqlTypeConstant.INT, length = 2, defaultValue = "0")
	private Integer isDel; //是否取消收藏 0否，1是
	
	@Column(name = "in_time", type = MySqlTypeConstant.DATETIME)
    private Date inTime;
	
}
